home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-11
/
fprotems.zip
/
PROPOPS.TEM
< prev
next >
Wrap
Text File
|
1993-01-04
|
2KB
|
51 lines
<<title Foxpro popup menus>>
<<* author: Ellen Sander>>
<<uicode>>
* Last modified 12/19/89
* +==================================================================+
* This Template codes FoxPro popup menus +
* in a procedure named POPDEFS. +
* Ignores any non-menu boxes or other text on screen +
* +==================================================================+
* program header
? '* +==================================================================+'
? '* POPUP DEFINITIONS FOR {stripdir(file)} from {stripdir(wwfile)} +'
? '* {template} {date} {time}" +'
? '* +==================================================================+'
?
load_lib("propops") ** Popup menu function library used by this template
write_testpops() ** Creates a runnable command file for testing
** You can comment this function out
?
? "**********************"
? "PROCEDURE POPDEFS" **"
? "**********************"
?
open_screen() ** Begin user query.
say(4,10 , 'Which color scheme should I use for these popups?')
say(5,10 , '(PRESS 2 for DEFAULT color scheme.)')
n = get_num(4,60,0,2,2)
close_screen() ** end user query
* With all the action tucked into the .tlb, this is the whole shooting match:
declare_all_popboxes(box,n)
? "RETURN"
**************************
function write_testpops **
**************************
* Code for testing popup menus from the command prompt.
* If commented out, the template only writes the popup code.
? "DO POPDEFS"
for all boxes where is_menu(box)
? "ACTIVATE POPUP {box.name}"
endfor
? "RETURN"
return
<<enduicode>>